<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../include/taglib.jsp"%>
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--[if lt IE 9]><script src="${ctx}/assets/js/html5.js"></script><![endif]-->
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="${ctx}/assets/css/style.css" />
<link rel="stylesheet" href="${ctx}/assets/css/ui.css" />
<script src="${ctx}/assets/js/jquery-1.7.1.min.js"></script>
<script src="${ctx}/assets/js/jquery.infinitescroll.min.js"></script>
<script src="${ctx}/assets/js/jquery.masonry.min.js"></script>
<script src="${ctx}/assets/js/jquery.blockUI.js"></script>
<script src="${ctx}/assets/js/kindeditor-min.js"></script>
<script type="text/javascript">
<!--
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[name="content"]', {
			resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : true,
			uploadJson : "${ctx}/admin/kindeditor/file-upload.do",
			items : [ 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor',
					'bold', 'italic', 'underline', 'removeformat', '|',
					'justifyleft', 'justifycenter', 'justifyright',
					'insertorderedlist', 'insertunorderedlist', '|',
					'emoticons', 'image' ]
		});
	});
//-->
</script>
</head>
<body>
	<%@include file="../include/head.jsp"%>
	<div class="vote-contain clearfix" id="container">
	<form action="${ctx }/vote" method="post" id="addVote" name="addVote">
		<fieldset>
			<h4 class="top_h4">添加投票</h4>
			<a href="#" class="close" title="关闭">close</a>
			<div class="label">
				<p>标题：</p>
				<input id="subjectTitle" name="subjectTitle" type="text"
					maxlength="100" />
			</div>
			<div class="label">
				<textarea name="content"
					style="width: 700px; height: 200px; visibility: hidden;"></textarea>
				<input name="descript" type="hidden" />
			</div>
			<br />
			<c:forEach var="i" begin="1" end="10" step="1">
				<div class="label">
					选项${i }：<input id="item${i }" name="item${i }" type="text"
						maxlength="100" />
				</div>
			</c:forEach>
			<div id="more" style="display: none;">
			<c:forEach var="i" begin="11" end="20" step="1">
				<div class="label">
					选项${i }：<input id="item${i }" name="item${i }" type="text"
						maxlength="100" />
				</div>
			</c:forEach>
			</div>
			<div class="label">
				<a href="#" class="tagbtn4" onclick="$('#more').show();$(this).hide()">更多</a>
				<a href="#" class="tagbtn4" onclick="document.forms['addVote'].descript.value=editor.html();document.forms['addVote'].submit()">保	存</a>
			</div>
			<br /><br />
		</fieldset>
	</form>
	</div>
</body>
</html>